﻿using JBeamLibrary.Types;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JBeamLibrary.VehicleParts.Elements
{
    public class Light
    {
        #region Properties

        public float InnerAngle { get; set; }

        public float OuterAngle { get; set; }

        public float Brightness { get; set; }

        public float Range { get; set; }

        public Color Color { get; set; }

        public Float3 Attenuation { get; set; }

        public bool CastShadows { get; set; }

        #endregion

        #region CTORs

        public Light()
        {
            InnerAngle = float.MinValue;
            OuterAngle = float.MinValue;
            Brightness = float.MinValue;
            Range = float.MinValue;
            Color = Color.Transparent;
            Attenuation = Float3.Invalid;
            CastShadows = false;
        }

        public Light(
            float innerAngle,
            float outerAngle,
            float brightness,
            float range,
            Color color,
            Float3 atteuation,
            bool castShadows)
        {
            InnerAngle = innerAngle;
            OuterAngle = outerAngle;
            Brightness = brightness;
            Range = range;
            Color = color;
            Attenuation = atteuation;
            CastShadows = castShadows;
        }

        #endregion
    }
}
